package com.jialiang.yojcodesandbox.security;

import java.security.Permission;

/**
 * 禁用所有权限的安全管理器
 */
public class DenySecurityManager extends SecurityManager{
    @Override
    public void checkPermission(Permission perm) {
        throw new SecurityException("权限异常：" + perm.toString());
    }
}